<h2>Tournament Manager</h2>

<table cellpadding="0" cellspacing="0">
<tr>
	<th>Name</th>
	<th>Date</th>
	<th>Location</th>
	<th>Actions</th>
</tr>
<?php
$i = 0;
foreach ($tournaments as $tournament):
?>
	<tr>
		<td>
			<?php echo $tournament['Tournament']['name']; ?>
		</td>
		<td>
			<?php echo $tournament['Tournament']['date']; ?>
		</td>
		<td>
			<?php echo $tournament['Tournament']['location']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link('Report', array('action' => 'view', $tournament['Tournament']['id'])); ?>
			<?php echo $html->link('Edit Details', array('action' => 'edit', $tournament['Tournament']['id'])); ?>
			<?php echo $html->link('Delete', array('action' => 'delete', $tournament['Tournament']['id']), null, sprintf(__('Are you sure you want to delete the tournament %s?  This will also delete all the registration information associated with this tournament.', true), $tournament['Tournament']['name'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
	<p>
		<?php echo $html->link('New Tournament', array('action' => 'add')); ?>
	</p>
